package com.showcai.service;


import com.github.pagehelper.PageInfo;
import com.showcai.module.ProductEntity;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.List;
import java.util.Map;

/**
 * Created by zpc on 2017/3/31.
 */
public interface ProductEntityService {


    ProductEntity modifyProductEntity(ProductEntity productEntity) throws MyRunTimeExcption;

    void stopAllProductEntity(Long productId);
    void operateAllProductEntity(Long productId);

    void stopProductEntity(Long tid);
    void operateProductEntity(Long tid);



    /**
     * @param map productId               查询productId的所以产品
     *            productEntityId         查询productEntityId的产品
     * @return
     */
    List<ProductEntity> getProductEntityListByProductId(Long productId) throws MyRunTimeExcption;

    List<ProductEntity> getProductEntityList(Map<String,String> map) throws MyRunTimeExcption;
    PageInfo getProductEntityPageList(Map<String,String> map) throws MyRunTimeExcption;
    ProductEntity getProductEntityById(Long productEntityId) throws MyRunTimeExcption;

    ProductEntity getProductEntity(Map<String, String> map) throws MyRunTimeExcption;

    PageInfo getPageInfoProductEntityList(Map<String, String> map) throws MyRunTimeExcption;



}
